<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"
	dir="ltr">
	<head>

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="<c:url value="/css/shopadmin.css"/>"
			type="text/css" />


	</head>
	<body style="">
		<div class="head_content" id="headBar" style=""></div>
		<div class="main_content" id="main">

			<form action="sys_pic_save.html"
				method="post" class="settingform"   
				id="basic_form" enctype="multipart/form-data">
				<input name="redirect" 	value="sys_setting_mall_basic" type="hidden">
					<div class="tableform">
						<table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td>
										<h4>
											首页轮播图片设置
										</h4>
									</td>
									<td style="text-align: right; padding-right: 10px;">
										&nbsp;
									</td>
								</tr>
							</tbody>
						</table>
						<div class="division" style="position: static;">
							<table class="shop-setting" border="0" cellpadding="0"
								cellspacing="0" width="100%">
								 
									<tr>
										<th>
											图片1：
										</th>
										<td>
											<input type="hidden"  value="${systemFiless[0].fileId}" name="systemFiless[0].fileId"  >
											<input type="hidden"  value="${systemFiless[0].imagePath}" name="systemFiless[0].imagePath"  >
											<input type="text"  type="text"  value="${systemFiless[0].url}" name="systemFiless[0].url"  >
											<input  class="x-input " style="width:280px;" name="systemFiless[0].upload" type="file">
										</td>
									</tr>
									<tr>
										<th>
											图片2：
										</th>
										<td>
											<input type="hidden"   value="${systemFiless[1].fileId}" name="systemFiless[1].fileId"  >
											<input type="hidden"  value="${systemFiless[1].imagePath}" name="systemFiless[1].imagePath"  >
											<input type="text"   value="${systemFiless[1].url}" name="systemFiless[1].url"  >
											<input  class="x-input " style="width:280px;" name="systemFiless[1].upload" type="file">
										</td>
									</tr>
									<tr>
										<th>
											图片3：
										</th>
										<td>
											<input type="hidden"   value="${systemFiless[2].fileId}" name="systemFiless[2].fileId"  >
											<input type="hidden"  value="${systemFiless[2].imagePath}" name="systemFiless[2].imagePath"  >
											<input type="text"   value="${systemFiless[2].url}" name="systemFiless[2].url"  >
											<input  class="x-input " style="width:280px;" name="systemFiless[2].upload" type="file">
										</td>
									</tr>
									<tr>
										<th>
											图片4：
										</th>
										<td>
											<input type="hidden"   value="${systemFiless[3].fileId}" name="systemFiless[3].fileId"  >
											<input type="hidden"  value="${systemFiless[3].imagePath}" name="systemFiless[3].imagePath"  >
											<input  type="text"  value="${systemFiless[3].url}" name="systemFiless[3].url"  >
											<input  class="x-input " style="width:280px;" name="systemFiless[3].upload" type="file">
										</td>
									</tr>
									<tr>
										<th>
											图片5：
										</th>
										<td>
											<input type="hidden"   value="${systemFiless[4].fileId}" name="systemFiless[4].fileId"  >
											<input type="hidden"  value="${systemFiless[4].fileId}" name="systemFiless[4].imagePath"  >
											<input type="text"   value="${systemFiless[4].url}" name="systemFiless[4].url"  >
											<input  class="x-input " style="width:280px;" name="systemFiless[4].upload" type="file">
										</td>
									</tr>
									 
								 
							</table>
						</div>
						
						<div class="table-action">
							<button type="submit"  class="btn">
								<span><span>保存</span> </span>
							</button>
						</div>
					</div>
			</form>
			

		</div>
		<div class="foot_content" id="footBar" style="font-size: 0px;"></div>
		  <script type="text/javascript"
			src="<c:url value='/scripts/jquery-1.4.2.js'/>"></script>
		<script type="text/javascript"
			src="<c:url value='/scripts/jquery.validate.js'/>"></script>
		<script type="text/javascript">

	$(document).ready(function() {
		var validator = $("#basic_form").validate( {
			errorElement : "div",
			errorClass : "x-vali-error",
			onfocusout : false,
			rules : {
				'systemSettingss[0].data' : "required",
				
				'systemSettingss[1].data' : {
					required : true,
					url : true
				},
				'systemSettingss[2].data' : "required",
				'systemSettingss[3].data' : {
					required : true,
					number : true
				}
			},
			messages : {
				'systemSettingss[0].data' : "必填字段",
				
				'systemSettingss[1].data' : {
					required : "必填字段",
					url : "请填入链接格式 http://aaa.bbb.com"
				},
				'systemSettingss[2].data' : "必填字段",
				'systemSettingss[3].data' : {
					required : "必填字段" ,
					number : "请输入数字"
				}
			},
			errorPlacement : function(error, element) {
				element.removeClass('x-vali-error');
				error.appendTo(element.parent());

			},

			success : function(div) {
				$(div).remove();
			}
		});
	});
</script>

	</body>
</html>